]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extension-prefs-tool: fix sensitivity of combobox items
authorGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 13 Feb 2012 14:22:55 +0000 (15:22 +0100)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Mon, 13 Feb 2012 18:29:42 +0000 (19:29 +0100)
Extensions are load asynchronously, and they're availability can
change at times, so sensitivity must sometimes be restored to true.

https://bugzilla.gnome.org/show_bug.cgi?id=670006

js/extensionPrefs/main.js

index 68603d77e3b71da0172cf06efacd83afc0b12c30..622d0ad266f53348ff36028c902e21fd327e3321 100644 (file)
@@ -70,8 +70,7 @@ const Application = new Lang.Class({
 
     _setExtensionInsensitive: function(layout, cell, model, iter, data) {
         let uuid = model.get_value(iter, 0);
-        if (!this._extensionAvailable(uuid))
-            cell.set_sensitive(false);
+        cell.set_sensitive(this._extensionAvailable(uuid));
     },
 
     _getExtensionPrefsModule: function(extension) {